package com.liu.mybatisplusdemo.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("goods")
public class Goods implements Serializable {

    @TableId(value="id",type = IdType.AUTO)
    @ExcelIgnore
    private int id;
    @ColumnWidth(30)
    @ExcelProperty("商品名")
    private String name;
    @ColumnWidth(20)
    @ExcelProperty("商品数量")
    private int count;
    @ColumnWidth(60)
    @ExcelProperty("创建时间")
    private long createtime;
    @ColumnWidth(20)
    @ExcelProperty("商品有效状态")
    private int state;

}
